package com.billing.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.UserPayBeanMapper;
import com.billing.model.entity.TUserPay;
import com.billing.service.UserPayService;

@Service
public class UserPayServiceImpl implements UserPayService {

	@Resource
	private UserPayBeanMapper userPayBeanMapper;
	
	public TUserPay selectTUserPay(String id) {
		return userPayBeanMapper.selectTUserPay(id);
	}

	public int updateTUserPay(TUserPay pay) {
		return userPayBeanMapper.updateTUserPay(pay);
	}

	public int insertTUserPay(TUserPay pay) {
		return userPayBeanMapper.insertTUserPay(pay);
	}

	public int insertTUserPayList(List<TUserPay> list) {
		return userPayBeanMapper.insertTUserPayList(list);
	}

	public int deleteTUserPay(Integer id) {
		return userPayBeanMapper.deleteTUserPay(id);
	}

	public List<TUserPay> selectTUserPayListUserid(String userid) {
		return userPayBeanMapper.selectTUserPayListUserid(userid);
	}

	@Override
	public TUserPay getPayByUsername(String name) {
		return userPayBeanMapper.getPayByUsername(name);
	}

	@Override
	public TUserPay selectTUserPayUserid(String userid) {
		return userPayBeanMapper.selectTUserPayUserid(userid);
	}

}
